package com.mall4jcola.cloud.convertor;

import cn.hutool.core.bean.BeanUtil;
import com.mall4jcola.cloud.auth.model.UserInfoEntity;
import com.mall4jcola.cloud.tunnel.database.dataobj.UserBasicDO;

/**
 * @author hmxchen
 */
public class UserInfoConvertor {
    public static UserInfoEntity toEntity(UserBasicDO userBasicDO){
        return BeanUtil.toBean(userBasicDO, UserInfoEntity.class);
    }

    public static UserBasicDO toModel(UserInfoEntity userInfoEntity){
        return BeanUtil.toBean(userInfoEntity, UserBasicDO.class);
    }
}
